Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base box #4

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Base box #4

wants to merge 18 commits into from

Conversation

designbyajay
Copy link

I changed the NPM prefix to within the yeoman user's home directory, and also re-wrote the readme. This base-box does not contain any pre-installed generators

designbyajay and others added 18 commits February 16, 2016 19:59
changed the generator that gets installed from webapp and angular to mcfly-ng2, exposed port 3000 instead of 9000, and also added gulp and bower to installed tools

Signed-off-by: Ajay Ganapathy <[email protected]>
now, files from the host system will show up in the docker container's /home/yeoman

Signed-off-by: Ajay Ganapathy <[email protected]>
gave non-root user "yeoman" the correct BASH shell and set permissions on the work directory.

Signed-off-by: Ajay Ganapathy <[email protected]>
generator-mcfly-ng2 uses port 5000 to serve the web app, not port 3000

Signed-off-by: Ajay Ganapathy <[email protected]>
/usr directory now has RWX permissions for all users. This isn't a very secure solution, but it's a stopgap for now. Yeoman user can now run npm and install packages to /usr

Signed-off-by: Ajay Ganapathy <[email protected]>
generator-mcfly-ng2 does NOT use gulp. It uses webpack, so I removed gulp from the dockerfile

Signed-off-by: Ajay Ganapathy <[email protected]>
browsersync UI runs on port 3001, so I exposed the port to make it easy to configure it while it's running
installed generator-gulp-angular, gulp, and bower. Then, exposed ports 3000 and 3001 for browsersync
/usr is no longer accessible by any user. Instead, npm now installs global packages to the yeoman user's home directory
un-exposed port 9000, and exposed ports 3000 and 3001 since that's where the generator set up browsersync to serve
the README for this generator now includes all of the instructions you will need to set up this docker box.
# Conflicts:
#	Dockerfile
The README for the base box now includes helpful gifs and detailed instructions on how to set up the docker container

Signed-off-by: Ajay Ganapathy <[email protected]>
I merged the generator-gulp-angular code into master, which I then merged into base-box, just for consistency. I removed the parts that were specific to the generator-gulp-angular docker container to leave you with the base-box code.

Signed-off-by: Ajay Ganapathy <[email protected]>
the readme was missing instructions for mapping the ports on the docker container to the host, so I added those instructions in, and included a helpful .gif

Signed-off-by: Ajay Ganapathy <[email protected]>
Source image ubuntu:latest failed upon building, so I changed the image to ubuntu:trusty. ubuntu:trusty is officially supported by node js

Signed-off-by: Ajay Ganapathy <[email protected]>
Signed-off-by: Ajay Ganapathy <[email protected]>

Conflicts:
	README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant